import { HOME_CITY_LOCAT, HOME_CITY_HOT, HOME_CITY_GROUP ,DELIVERLY_CITY_ID,HOME_NEAR_SHOP} from '../../actionType/homeType.jsx'
const initialState = {
    title: '热门城市',
    // hotcity:[],
    // locatcity:[],
    // groupcity:[],

}
export default (state = initialState, { type, payload }) => {
    switch (type) {

        case HOME_CITY_LOCAT:
            return { ...state, ...payload }
        case HOME_CITY_HOT:
            return { ...state, ...payload }
        case HOME_CITY_GROUP:
            return { ...state, ...payload }
        case DELIVERLY_CITY_ID:
            return { ...state, ...payload }
            case HOME_NEAR_SHOP:
            return { ...state, ...payload }
        default:
            return state
    }
}
